//
//  UIView+Roundness.m
//  Kaker
//
//  Created by YongbinZhang on 10/24/13.
//  Copyright (c) 2013 ZhangYongbin(JustBen). All rights reserved.
//

#import "UIView+Roundness.h"

#import <QuartzCore/QuartzCore.h>

//static CGFloat const rightAngleRadius = 45.0f;

@implementation UIView (Roundness)

//  变成圆的
- (void)becomeRoundedWithCornerRadius:(CGFloat)cornerRadius BorderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor
{
    self.layer.cornerRadius = cornerRadius;
    self.layer.borderWidth = borderWidth;
    self.layer.borderColor = borderColor.CGColor;
    self.layer.masksToBounds = YES;
    self.opaque = NO;
}

@end
